package com.woniuxy.dudugua.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public class User implements Serializable {
    /**
    * 用户id
    */
    private Integer id;

    /**
    * 用户名
    */
    private String username;

    /**
    * 密码
    */
    private String password;

    /**0
    * 电话
    */
    private String tel;

    /**
    * 性别
    */
    private String sex;

    /**
    * 年龄
    */
    private Integer age;

    /**
    * 身份证号码
    */
    private String idCard;

    /**
    * 余额
    */
    private BigDecimal money;

    /**
    * 头像地址
    */
    private String url;

    /**
    * 微信授权ID
    */
    private String unionid;

    /**
     *address集合对象
     */
    private List<Address> addressList;

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }

    public User(Integer id, String username, String password, String tel, String sex, Integer age, String idCard, BigDecimal money, String url, String unionid) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.tel = tel;
        this.sex = sex;
        this.age = age;
        this.idCard = idCard;
        this.money = money;
        this.url = url;
        this.unionid = unionid;
    }

    public User() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", tel='" + tel + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", idCard='" + idCard + '\'' +
                ", money=" + money +
                ", url='" + url + '\'' +
                ", unionid='" + unionid + '\'' +
                '}';
    }
}